home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / rdate / PORTING < prev    next >
Encoding:
Text File  |  1993-01-02  |  1.6 KB  |  46 lines

  1. Porting
  2. -------
  3.  
  4. The initial porting effort identified three items which were version
  5. specific.  Each of the affect areas of the code is wrapped in cpp(1)
  6. directives to allow selection of known alternatives through appropriate
  7. #define statements.  The file rdate.h uses preset cpp(1) definitions
  8. (e.g., sun on SunOS systems) to specify the correct set of #define
  9. statements, where possible.  It is still necessary to specify some
  10. flags through the Makefile.  The current code has been ported to and
  11. tested on the following hardware/software combinations:
  12.  
  13. HP 9000/825, HP/UX A.B7.00
  14. Sun 3, SunOS 4.1
  15. Sequent Symmetry, DYNIX 3.0.17
  16. VAX 3602, Ultrix 3.1
  17. PS/2, AIX
  18. Unisys U6000/51, System Vr3
  19. Interactive 386/ix
  20.  
  21. To port rdate to another environment:
  22.  
  23. 1) Determine if your system is BSD-like or System V-like: does it use
  24.    settimeofday(2) or stime(2), respectively?
  25.  
  26. 2) If it is BSD-like, does it have adjtime(2)?
  27.  
  28. 3) Modify Makefile, and possibly rdate.h, according to the following:
  29.  
  30.    If it is BSD-like and does not have adjtime(2), just use the generic
  31.    BSD compile and link flags.
  32.  
  33.    If it is BSD-like and has adjtime(2), use the BSD flags which define
  34.    HAS_ADJTIME or modify rdate.h (in the manner used for sun and ultrix)
  35.    to automatically define this).
  36.  
  37.    If it is System V-like, start by using the generic System V flags.
  38.    If this results in undefined references at link time, there is
  39.    probably a special link flag to include the socket routines.  Delve
  40.    into the manuals and determine what standard you vendor has chosen
  41.    to set.
  42.  
  43. 4) If this still isn't sufficient, get out the Veg-O-Matic and
  44.    start slicing and dicing.
  45.  
  46.